package com.yvon.im;

import com.yvon.im.server.NettyServer;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author : wangyufeng
 * @since : 2021-12-02
 */
@SpringBootApplication
public class IMApplication implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(IMApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        NettyServer nettyServer = new NettyServer(8858);
        nettyServer.start();
    }
}
